package com.ruoyi.shebei.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保养到期提醒对象 maintenance_warning
 * 
 * @author ruoyi
 * @date 2024-07-29
 */
public class MaintenanceWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 到期提醒表id */
    private Long warningId;

    /** 保养表id,外键 */
    @Excel(name = "保养表id,外键")
    private Long upkeepId;

    /** 设备表id,外键 */
    @Excel(name = "设备表id,外键")
    private Long shebeiId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String sbName;

    /** 预警级别  1低级、2中级、3高级 */
    @Excel(name = "预警级别  1低级、2中级、3高级")
    private String yjRank;

    /** 设备状态 1 正常 2 停用 3报废 */
    @Excel(name = "设备状态 1 正常 2 停用 3报废")
    private String sbStatus;

    /** 异常描述 */
    @Excel(name = "异常描述")
    private String ycDescription;

    /** 保养人员 */
    @Excel(name = "保养人员")
    private String byPersonnel;

    /** 保养日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "保养日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date byDate;

    /** 保养周期 */
    @Excel(name = "保养周期")
    private Long byCycle;

    /** 下次保养提醒日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次保养提醒日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextByDate;

    public void setShebeiId(Long shebeiId)
    {
        this.shebeiId = shebeiId;
    }

    public Long getShebeiId()
    {
        return shebeiId;
    }

    public void setWarningId(Long warningId) 
    {
        this.warningId = warningId;
    }

    public Long getWarningId() 
    {
        return warningId;
    }
    public void setUpkeepId(Long upkeepId) 
    {
        this.upkeepId = upkeepId;
    }

    public Long getUpkeepId() 
    {
        return upkeepId;
    }
    public void setSbName(String sbName) 
    {
        this.sbName = sbName;
    }

    public String getSbName() 
    {
        return sbName;
    }
    public void setYjRank(String yjRank) 
    {
        this.yjRank = yjRank;
    }

    public String getYjRank() 
    {
        return yjRank;
    }
    public void setSbStatus(String sbStatus) 
    {
        this.sbStatus = sbStatus;
    }

    public String getSbStatus() 
    {
        return sbStatus;
    }
    public void setYcDescription(String ycDescription) 
    {
        this.ycDescription = ycDescription;
    }

    public String getYcDescription() 
    {
        return ycDescription;
    }
    public void setByPersonnel(String byPersonnel) 
    {
        this.byPersonnel = byPersonnel;
    }

    public String getByPersonnel()
    {
        return byPersonnel;
    }
    public void setByCycle(Long byCycle)
    {
        this.byCycle = byCycle;
    }

    public Long getByCycle()
    {
        return byCycle;
    }
    public void setNextByDate(Date nextByDate) 
    {
        this.nextByDate = nextByDate;
    }

    public Date getNextByDate() 
    {
        return nextByDate;
    }

    public void setByDate(Date byDate)
    {
        this.byDate = byDate;
    }

    public Date getByDate()
    {
        return byDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("warningId", getWarningId())
            .append("upkeepId", getUpkeepId())
            .append("sbName", getSbName())
            .append("yjRank", getYjRank())
            .append("sbStatus", getSbStatus())
            .append("ycDescription", getYcDescription())
            .append("byPersonnel", getByPersonnel())
            .append("byCycle", getByCycle())
            .append("nextByDate", getNextByDate())
            .append("byDate", getByDate())
            .append("shebeiId", getShebeiId())
            .toString();
    }
}
